]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Only apply neutral entry focus color on lock screen
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Aug 2023 15:54:43 +0000 (17:54 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 29 Aug 2023 19:12:47 +0000 (19:12 +0000)
Commit a72c95de changed the focus style for all system entries
to a more neutral color, as the stronger focus often clashes
with the wallpaper background on the lock screen.

However that is not a concern for entries that appear over the
neutral system background. Worse, the neutral focus indication
provides so little contrast with the background there that is
not much of an indication anymore.

Address this by restoring the old focus indication for the
generic system_entry mix-in, but override it specifically on
the lock screen to avoid the clash with the wallpaper background.

Fixes a72c95de
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6945
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6880

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2922>

data/theme/gnome-shell-sass/_common.scss
data/theme/gnome-shell-sass/widgets/_login-lock.scss

index ecd39c757dd853f97bc52c982f58405d42e5471c..5b117ea7140b58657b49775643f21c0f6af5c73a 100644 (file)
@@ -280,7 +280,7 @@ stage {
   @extend %entry_common;
   @include entry(normal, $c:$system_fg_color,);
   &:hover { @include entry(hover, $c:$system_fg_color);}
-  &:focus { @include entry(focus, $c:$system_fg_color, $fc:transparentize($system_fg_color, 0.5));}
+  &:focus { @include entry(focus, $c:$system_fg_color, $fc:$selected_bg_color);}
   &:insensitive { @include entry(insensitive, $c:$system_fg_color);}
 
   StLabel.hint-text { color: transparentize($system_fg_color, 0.3);}
index 212a2d3855c747964c496e480f3b69eed160696d..8677ae748650a289f9a12a6dbadf84124f0319fa 100644 (file)
@@ -155,6 +155,11 @@ $_gdm_dialog_width: 23em;
 
 .unlock-dialog {
   background-color: transparent;
+
+  // %system_entry style override to have neutral focus color with wallpaper background
+  .login-dialog-prompt-entry {
+    &:focus { @include entry(focus, $c:$system_fg_color, $fc:transparentize($system_fg_color, 0.5));}
+  }
 }
 
 .screen-shield-background { // just the shadow, really